﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace MenuGame2DXNA
{
    public class MyDrawWithAlpha : VisibleGameEntity
    {
        public MyDrawWithAlpha(Texture2D TextureDraw, Vector2 position)
        {
            ObjectVisible = new List<Sprite>();
            Sprite tempSprite = new AutomatedSprite(TextureDraw, position);
            tempSprite.Color = new Color(0, 0, 0, 140);
            ObjectVisible.Add(tempSprite);
            nObjectVisible = 1;
        }
        public override void UpdatePositon()
        {
            for (int i = 0; i < nObjectVisible; i++)
                ObjectVisible[i].Position = new Vector2(ObjectVisible[i].PositionStart.X + TopLeft.X,
                    ObjectVisible[i].PositionStart.Y + TopLeft.Y);

        }
    }
}
